home *** CD-ROM | disk | FTP | other *** search
-
- ==================================================================
-
- VisualAge for Java
- Version 2.0
-
- Visual Program Development
-
- RELEASE NOTES
-
- ==================================================================
-
- Table of Contents
-
- 1.0 Visual Composition
- 1.1 Running main() for Version 1.0 Classes
- 1.2 Class Path Updates
- 1.3 Morphing
- 1.4 Delete main() on Copied/Moved/Renamed Classes
- 1.5 Moving and sizing a JApplet
- 1.6 Using a JTable in a GridBag layout
- 1.7 Visual Reconstruction
- 1.8 Externalizing non-English strings to a property file
- 1.9 Opening and closing the VCE many times slows down the system
-
- 2.0 BeanInfo Page
- 2.1 Long and Short Properties
- 2.2 Deleting Properties
-
- 1.0 Visual Composition
-
- 1.1 Running main() for Version 1.0 Classes
-
- The main(String[]) methods that were generated in VisualAge version
- 1.0 for classes that subclassed anything other than java.awt.Frame
- attempted to construct a TestFrame class. The name of the package in
- which TestFrame is located has changed in version 2.0. To update the
- package name of this class: Delete the main(String[]) method from
- your class. Open the class in the Visual Composition page and select
- Bean->Re-generate Code. This will cause a new main (String[]) method
- to be generated.
-
- If you do not follow these steps and you elect to run your class from
- main(), you will not be able to close the frame. As a workaround,
- you can open the debugger and terminate the thread for the class.
-
-
- 1.2 Class Path Updates
-
- If you add a bean to a visual composite from another project, you
- must update the class path of the composite to include the project of
- the bean you just added. You can update the class path manually or
- have VisualAge do it for you. From the Visual Composition
- page of the composite, select Bean->Run->Check Class Path.
-
- - To add a project yourself, select the Edit button next to the
- Project path field and then select the projects that you want to add
- to the project path.
-
- - To have VisualAge update the project path based on the
- beans you have added to the composite, select the Compute Now button.
-
-
- 1.3 Morphing
-
- When morphing beans, the order of connections from the bean may not
- be maintained. You can reorder the connections from the pop-up menu
- of the morphed bean.
-
- 1.4 Delete main() on Copied/Moved/Renamed Classes
-
- If you've copied, moved, or renamed a visually composed class, be
- sure to delete main() and save the class. By deleting main(), you
- remove obsolete code that VisualAge would not otherwise overwrite.
- Once the obsolete main() has been deleted, VisualAge recreates a
- valid main() when you save the class.
-
-
- 1.5 Moving and sizing a JApplet
-
- If you've subclassed a JApplet and want to change its size or
- position on the Visual Composition page, you must make sure that you
- select and manipulate the JApplet - not its contentPane. Since the
- JApplet's contentPane completely covers the JApplet, you should
- select the JApplet using the Beans List and then manipulate the
- selection handles and border. This technique of using the Beans List
- is useful in many situations where one or more of a containers
- children completely cover the container.
-
-
- 1.6 Using a JTable in a GridBag layout
-
- When a JTable is dropped into a JContainer that is using a GridBag
- layout, its size will be very large. This is because a GridBag
- layout sizes components based on their preferredSizes. The
- preferredSize of a JTable is hardcoded by JavaSoft to be 450x400. To
- make the JTable smaller change its preferredScrollableViewportSize
- property to be the size that you want.
-
- 1.7 Visual Reconstruction
-
- If you Reconstruct Visuals for a bean that implements
- com.sun.java.swing.RootPaneContainer (for example JFrame, or JApplet)
- you will have to drag the contentPane out of its container and then
- drag it back in order to generate the correct code. If you do not,
- the Visual Composition Editor will generate an "add" call for the
- contentPane instead of a call to "setContentPane" every time the bean
- is saved. Performing this drag operation once will cause VisualAge
- to generate your bean's code correctly from then on.
-
- 1.8 Externalizing non-English strings to a property file
-
- If using the Visual Composition Editor on a system configured with a
- non-English code page, you may encounter problems when externalizing
- a string into a property file. When entering a string for a visual
- component in the String externalization editor, the string may not
- appear correctly (the non-english characters will appear as question
- marks). To workaround this problem, use the Sun JDK 1.1.6
- native2Ascii utility on the property file as follows:
- native2ascii <src property file> <target property file>
- Once this is done, the strings appear correctly at runtime and in the
- VCE.
-
-
- 1.9 Opening and closing the VCE many times slows down the system.
-
- When the Visual Composition Editor is opened and closed many times,
- it can begin to consume memory and cause the system to run slower.
- This is particularly true if the Visual Composition Editor you are
- opening and closing includes beans that contain lots of static data.
- To reclaim this memory you must exit and restart VisualAge for Java.
-
-
- 2.0 BEANINFO PAGE
-
- 2.1 Long and Short Properties
-
- If you create a java.lang.Short or java.lang.Long property by
- selecting New Property Feature from the BeanInfo page of the class
- browser, the field declaration that gets generated for the property
- is incorrect. It will cause an exception to be thrown when the class
- that contains it is constructed (for example, when the class that
- contains the property is dropped within another class). As a
- workaround, update the field declarations, as follows:
-
- - For a short property, change new Short("") to new Short((short)0)
- in the generated field declaration and save the change.
-
- - For a long property, change new Long("") to new Long((long)0) in
- the generated field declaration and save the change.
-
- 2.2 Deleting Properties
-
- When you delete a BeanInfo property, the field associated with the
- property is not deleted from the class definition because you might
- have code referencing it. If you do not need the field, you can
- safely delete it from the class definition.
-